<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../_css/BrightSide.css" type="text/css" />
<link rel="stylesheet" href="../_css/layout.css" type="text/css" />
<script type="text/javascript">
//--------Sajax----------------
   	<?
		sajax_show_javascript();
	?>
//------------------------------
</script>
{userscript}
<title>SYNONIM EDITOR WORKBENCH</title>
<base target="_self">
</head>
<body>
<div id="content">
	<h1>Candidate <span class="green">Checking & Add</span></h1>
	<form action="./PopupCandidate.php" method="post">
	<p>
	<input type="hidden" id="addCandidate" value="{search_candidate}">
	<input type="hidden" id="cluster_cd" name="cluster_cd" value="{cluster_cd}">
	<input name="search_candidate" type="text" size="40" value="{search_candidate}">&nbsp;&nbsp;
	<input class="button" type="submit" value=" SEARCH ">&nbsp;&nbsp;
	<!-- {? search_flag == true } -->
	<input class="button_red" type="button" value=" ADD " onClick="addC();">&nbsp;&nbsp;<br>&nbsp;
	<span style="color:red">No duplicate word found, press 'ADD' button to insert a new word. </span>
	<!-- {/} -->
	</p>
	</form>
	<br><br>
	<table width="98%" cellspacing=0 cellpadding=0 border=0 class="list_tb" >
		<tr >
			<td class="title tc" width="50">ID</td>
			<td class="title" width="100">Main</td>
			<td class="title" width="100">NER</td>
			<td class="title" >Synoyms Candidates</td>
			<td class="title" width="100">Operation</td>
			<td class="title" width="50">Status</td>
		</tr>
	<!--{@ list}-->
		<tr>
			<td class="cont tc">{.CLUSTER_CD}</td>
			<td class="cont" id="represent_td_{.CLUSTER_CD}">{.CANDIDATE_NM}</td>
			<td class="cont">
				{.NER_NM}
			</td>
			<td class="cont" id="cadidate_td_{.CLUSTER_CD}">
				<!-- {@list.candidate} -->
				<input name="chk_{.CLUSTER_CD}" type='checkbox' value="{..CANDIDATE_CD}"> {..CANDIDATE_NM} &nbsp;&nbsp;
				<input id="chk_value_{..CANDIDATE_CD}" type="hidden" value="{..CANDIDATE_NM}">
				<!-- {/} -->
			</td>
			<td class="cont">
				<input class="button_orange" type="button" value=" C " onClick="changeRepresent({.CLUSTER_CD})">&nbsp;
				<input class="button_orange" type="button" value=" D " onClick="delCandidate({.CLUSTER_CD})">&nbsp;
			</td>
			<td id="status_td_{.CLUSTER_CD}" class="status_{.CLUSTER_ST}">
				<!-- {?.CLUSTER_ST==1} -->
					waiting
				<!-- {:.CLUSTER_ST==2 } -->
					skip
				<!-- {:.CLUSTER_ST==3 } -->
					save
				<!-- {:.CLUSTER_ST==4 } -->
					request
				<!-- {:.CLUSTER_ST==5 } -->
					answer
				<!-- {:.CLUSTER_ST==6 } -->
					checked
				<!-- {:.CLUSTER_ST==7 } -->
					working
				<!-- {:.CLUSTER_ST==8 } -->
					completed
				<!-- {/} -->
			</td>
		</tr>
		<!--{/}-->
	</table>

</div>
</body>
</html>

